var baseUrl='http://localhost:3030'
export default function request(params){
	return new Promise((resolve,reject)=>{
		uni.request({
			url:baseUrl+params.url || '',
			method:params.method || 'get',			
			data:params.data || {},
			success:function(res){
				resolve(res)
			},
			fail:function(err){
				reject(err)
			}	
		})
	})
}